.class public Lcom/example/m6wmr/RunActivity;
.super Landroid/app/Activity;
.source "RunActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field public h:Landroid/os/Handler;

.field private iv_buy:Landroid/widget/ImageView;

.field private iv_run:Landroid/widget/ImageView;

.field private iv_send:Landroid/widget/ImageView;

.field private m:Lmyapp/MyApp;

.field private mcontext:Landroid/content/Context;

.field phone:Ljava/lang/String;

.field private tv:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 32
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 35
    iput-object v0, p0, Lcom/example/m6wmr/RunActivity;->h:Landroid/os/Handler;

    .line 37
    iput-object v0, p0, Lcom/example/m6wmr/RunActivity;->m:Lmyapp/MyApp;

    .line 32
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/RunActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 36
    iget-object v0, p0, Lcom/example/m6wmr/RunActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/RunActivity;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 33
    iget-object v0, p0, Lcom/example/m6wmr/RunActivity;->tv:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/RunActivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 37
    iget-object v0, p0, Lcom/example/m6wmr/RunActivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method private init()V
    .locals 1

    .prologue
    .line 91
    const v0, 0x7f0c0224

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/RunActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/RunActivity;->tv:Landroid/widget/TextView;

    .line 92
    const v0, 0x7f0c0363

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/RunActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6wmr/RunActivity;->iv_send:Landroid/widget/ImageView;

    .line 93
    const v0, 0x7f0c0364

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/RunActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6wmr/RunActivity;->iv_buy:Landroid/widget/ImageView;

    .line 94
    const v0, 0x7f0c0365

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/RunActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6wmr/RunActivity;->iv_run:Landroid/widget/ImageView;

    .line 96
    iget-object v0, p0, Lcom/example/m6wmr/RunActivity;->iv_send:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 97
    iget-object v0, p0, Lcom/example/m6wmr/RunActivity;->iv_buy:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 98
    iget-object v0, p0, Lcom/example/m6wmr/RunActivity;->iv_run:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 99
    return-void
.end method


# virtual methods
.method public getorderlist()Z
    .locals 1

    .prologue
    .line 129
    new-instance v0, Lcom/example/m6wmr/RunActivity$3;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/RunActivity$3;-><init>(Lcom/example/m6wmr/RunActivity;)V

    .line 178
    invoke-virtual {v0}, Lcom/example/m6wmr/RunActivity$3;->start()V

    .line 179
    const/4 v0, 0x0

    return v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 106
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v3

    packed-switch v3, :pswitch_data_0

    .line 122
    :goto_0
    return-void

    .line 108
    :pswitch_0
    new-instance v0, Landroid/content/Intent;

    const-class v3, Lcom/example/m6wmr/SendActivity;

    invoke-direct {v0, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 109
    .local v0, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v0}, Lcom/example/m6wmr/RunActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 112
    .end local v0    # "intent":Landroid/content/Intent;
    :pswitch_1
    new-instance v1, Landroid/content/Intent;

    const-class v3, Lcom/example/m6wmr/BuyActivity;

    invoke-direct {v1, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 113
    .local v1, "intent1":Landroid/content/Intent;
    invoke-virtual {p0, v1}, Lcom/example/m6wmr/RunActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 116
    .end local v1    # "intent1":Landroid/content/Intent;
    :pswitch_2
    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/example/m6wmr/RunlistActivity;

    invoke-direct {v2, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 117
    .local v2, "intent2":Landroid/content/Intent;
    invoke-virtual {p0, v2}, Lcom/example/m6wmr/RunActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 106
    nop

    :pswitch_data_0
    .packed-switch 0x7f0c0363
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 42
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 43
    const v2, 0x7f0300b2

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/RunActivity;->setContentView(I)V

    .line 44
    invoke-direct {p0}, Lcom/example/m6wmr/RunActivity;->init()V

    .line 45
    iput-object p0, p0, Lcom/example/m6wmr/RunActivity;->mcontext:Landroid/content/Context;

    .line 46
    invoke-virtual {p0}, Lcom/example/m6wmr/RunActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    check-cast v2, Lmyapp/MyApp;

    iput-object v2, p0, Lcom/example/m6wmr/RunActivity;->m:Lmyapp/MyApp;

    .line 47
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/RunActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 48
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6wmr/RunActivity$1;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/RunActivity$1;-><init>(Lcom/example/m6wmr/RunActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 54
    const/high16 v2, 0x7f0c0000

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/RunActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 55
    .local v1, "top":Landroid/widget/LinearLayout;
    iget-object v2, p0, Lcom/example/m6wmr/RunActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v2}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 56
    const v2, 0x7f070026

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 58
    :cond_0
    new-instance v2, Lcom/example/m6wmr/RunActivity$2;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/RunActivity$2;-><init>(Lcom/example/m6wmr/RunActivity;)V

    iput-object v2, p0, Lcom/example/m6wmr/RunActivity;->h:Landroid/os/Handler;

    .line 85
    invoke-virtual {p0}, Lcom/example/m6wmr/RunActivity;->getorderlist()Z

    .line 86
    return-void
.end method
